<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scale">
    <title>按钮插件</title>
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <style>

    </style>
</head>
<body style="margin:200px;">
<div>
    <button class="btn btn-primary" data-toggle="button" autocomplete="off">按钮</button>
</div>

<div class="btn-group" data-toggle="buttons">
    <label for="" class="btn btn-primary active">
        <input type="radio" name="sex" value="男" checked>男
    </label>
    <label for="" class="btn btn-primary">
        <input type="radio" name="sex" value="女" >女
    </label>
</div>

<button class="btn btn-primary" data-abc-text="loading..." autofocus="off">开始上传</button>

<button class="btn btn-primary" autocomplete="off">按钮</button>

<script>
    /*
    $('button').on('click',function(){
        var btn=$(this).button('loading');
        setTimeout(function(){
            btn.button('reset');
        },1000);
    });
    */

    $('button').on('click',function(){
        $(this).button('toggle');
    });
</script>
</body>

</html>